/**
 * @file lv_watch_list.h
 *
 */
#ifndef LV_WATCH_LIST_H
#define LV_WATCH_LIST_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lv_watch_conf.h"
#else
#include "../../../lvgl/lvgl.h"
#include "../../../lv_watch_conf.h"
#endif

#if USE_LV_WATCH_LIST != 0

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/
typedef struct
{
    lv_watch_obj_ext_t lv_watch_obj;/*Ext. of ancestor*/
    /*New data for this type */
    lv_obj_t * name;
    lv_obj_t * list;
    uint8_t list_name_hide :1;
} lv_watch_list_ext_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/

/**
 * Create a lv_watch_list application
 */
lv_obj_t * lv_watch_list_create(lv_obj_t * par);
lv_obj_t * lv_watch_list_add(lv_obj_t * obj, const void * img_src, watchLangTxtId_t txtId, lv_event_cb_t rel_event_cb);
void lv_watch_list_set_name_txt(lv_obj_t * obj, watchLangTxtId_t txtId);

/**********************
 *      MACROS
 **********************/

#endif /*USE_LV_WATCH_LIST*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*LV_WATCH_LIST_H*/
